﻿<%@ Page Language="C#" MasterPageFile="~/LMIS_Master.Master" AutoEventWireup="true" CodeBehind="AddBookInstance.aspx.cs" Inherits="LMIS_Application.AddBookInstance" Title="LIMS | Add Book Instance" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
<div>
    <table width=100%>
        <tr>
            <td colspan=2><h2>Add Book Copy</h2></td>
        </tr>
        <tr>
            <td>Book ID:</td><td>
                    <asp:TextBox ID="tbBookID" runat="server"></asp:TextBox>
                    &nbsp;<asp:RangeValidator ID="rv_abc" runat="server" 
                        ControlToValidate="tbBookID" ErrorMessage="Cannot be null and must be &gt; 0" 
                        MaximumValue="32768" MinimumValue="1" Type="Integer" ValidationGroup="vg_abc">*. 
                    Must be &gt; 0</asp:RangeValidator>
                    </td>
        </tr>

        <tr>
            <td></td><td>
            <asp:Button ID="btnAddBook" runat="server" Text="Add Book" 
                onclick="btnAddBook_Click" ValidationGroup="vg_abc" />
            </td>
        </tr>
        <tr>
            <td colspan=2>
                <asp:Label ID="info" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    </div>
</asp:Content>
